(function () {
  var tbody = document.querySelector('table tbody');

  function init() {
    var sHtml = '';
    for (var i = 0; i < peoples.length; i++) {
      var item = peoples[i];
      sHtml += `
        <tr>
        <td><input type="checkbox" ${item.isselect}/></td>
        <td>${item.id}</td>
        <td>${item.name}</td>
        <td>${item.age}</td>
        <td>${item.job}</td>
      </tr>`;
    }
    tbody.innerHTML += sHtml;
  }

  init();
})();
